package com.uinnova.product.eam.mvc;

import com.binary.framework.web.RemoteResult;
import com.uinnova.product.eam.service.FlushDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/flush/data")
public class FlushDataControllr {

    @Autowired
    private FlushDataService flushDataService;

    @GetMapping("/systemDirDrop")
    public RemoteResult systemDirDrop() {
        int count = flushDataService.systemDirDrop();
        return new RemoteResult(count);
    }
}
